Skip to content

Conversation

@zackkatz
Copy link
Contributor

Resolves #9743

Proposed Changes:

  1. Adds a static cache to edd_get_option() to improve speed.

cklosowski and others added 30 commits October 8, 2022 06:18
Switch to get orders calls and respect order currency awesomemotive#9484
Add current page to edd_global_vars, include in tax recalculation
Update block editor author selection for download capabilities
Limit the product_dropdown calls on the logs and main tools page to use chosen awesomemotive#9498
cklosowski and others added 27 commits September 7, 2023 14:45
@mbtools
Copy link

mbtools commented Jul 29, 2024

This is trading CPU for memory, which is ok. But there should be a limit to the cache size or there's trouble ahead.

@cklosowski
Copy link
Contributor

Thanks @zackkatz. I'll have a look at the suggestion here and see what we can come up with. I agree that there is some precedence set that the filter will be run every time the option is getting requested...so only running the filter a single time may be a problem, but I'll see what we can do here.

I agree with @mbtools here that it's a trade in the direction of memory over CPU, which is usually a good tradeoff (but should be capped for sure).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

edd_get_option() is slow

5 participants